#ifndef BASICFILEREADER_H_
#define BASICFILEREADER_H_
#include <stdio.h>
#include <stdlib.h>
#include "Vector2D.h"

class BasicFileReader
{
	public:
	static char * GetNextTag(FILE * fptr);
	static char * GetNextElement(char * tag, int * pos);
	
	static Vector2D ReadCoordinate(char * element);
	static int ReadInt(char * element);
	static float ReadFloat(char * element);
	static Vector2D ReadNextCoordinate(char * tag, int * pos);
	static int ReadNextInt(char * tag, int * pos);
	static float ReadNextFloat(char * tag, int * pos);
	static char * ReadNextString( char * tag, int * pos);
	static Vector2D * ReadNextVectorArray(int numVertices, char * tag, int * pos);
	
};
#endif /*BASICFILEREADER_H_*/
